import { App } from "vue";
import Theme from "vitepress/theme";
import "../../public/css/customStyle.css";
import VPApp, { globals } from "../layout";
import IkunPlus from "ikun-plus";

export default {
  ...Theme,
  Layout: VPApp,
  enhanceApp({ app }: { app: App }) {
    app.use(IkunPlus); // 进行组件注册，这样我们可以直接在 markdown 中使用组件啦！
    globals.forEach(([name, Comp]) => {
      app.component(name, Comp);
    });
  }
};
